package com.zygh.interactiveplatform.module.controller;


import com.zygh.interactiveplatform.common.anno.PcLog;
import com.zygh.interactiveplatform.common.constant.SwaggerTagConst;
import com.zygh.interactiveplatform.common.domain.ResponseDTO;
import com.zygh.interactiveplatform.module.service.StorageTrendsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lee
 * @since 2021-02-01
 */
@RestController
@RequestMapping("/storage-trends")
@Api(tags = {SwaggerTagConst.Admin.MANAGER_STORAGETRENDS})
public class StorageTrendsController {
    @Resource
    private StorageTrendsService storageTrendsService;
    @ApiOperation(value = "储存趋势", notes = "储存趋势")
    @GetMapping("findStorageTrendsLast")
    @PcLog(logType = "1", module = SwaggerTagConst.Admin.MANAGER_STORAGETRENDS, content = "储存趋势")
    public ResponseDTO findStorageTrendsLast() {
        return storageTrendsService.findStorageTrendsLast();
    }
}
